﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using DaoHelper.Religion;
using DaoHelper.Religion.Entity;
using WB.Library;
public partial class Admin_Users_AddEdit : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
    {
        CreateUserWizard ctr = (CreateUserWizard)sender;
        MembershipUser user = Membership.GetUser(ctr.UserName);

        TgUserInfoEntity u = new TgUserInfoEntity();
        u.Id = FGuid.ToGuid(user.ProviderUserKey.ToString());
        u.UserName = user.UserName;
        TgUserInfoDao.Instants().Insert(u);

        Response.Redirect(Request.RawUrl);
    }
}
